package com.bysc.userservice.client;

import com.bysc.commonutils.Results;
import com.bysc.commonutils.message.NotificationMessage;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component

@FeignClient(value = "service-join",fallback = JoinDegradeFeignClient.class)

public interface JoinClient {

    //发送评论点赞通知
    @GetMapping("/joinservice/join-user-dept/getDeptsByUserId/{userId}")
     Results getDeptsByUserId(@PathVariable String userId);

    @GetMapping("/joinservice/join-user-dept/getAllJoin")
    Results getAllJoin();
}